package org.example.websocket.Websocket;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.concurrent.ConcurrentHashMap;


@RestController
@RequestMapping("/websocket")
public class WebSocketController {


    @GetMapping("/pushone")
    public void pushone()
    {
        WebSocketService.sendMessage("badao","发送消息测试");
    }

    public static void main(String[] args) {
        System.out.println(0.1*3==0.3);
        byte a = 127;
        byte b = 127;
//        b = a + b; // 报编译错误:cannot convert from int to byte
        b += a;
        System.out.println(b);
        ConcurrentHashMap concurrentHashMap = new ConcurrentHashMap();
    }
}

